import request from '@/utils/request'
//查询所有的相关信息
export function getResumeInfo(userId) {
  return request({
    url: '/myresume/'+userId,
    method: 'get'
  })
}
//查询职位申请记录列表
export function listApplication(query) {
  return request({
    url: '/internship/application/list',
    method: 'get',
    params: query
  })
}

// 查询职位申请记录详细
export function getApplication(applicationId) {
  return request({
    url: '/internship/application/' + applicationId,
    method: 'get'
  })
}

// 新增职位申请记录
export function addApplication(data) {
  return request({
    url: '/internship/application',
    method: 'post',
    data: data
  })
}

// 修改职位申请记录
export function updateApplication(data) {
  return request({
    url: '/internship/application',
    method: 'put',
    data: data
  })
}

// 删除职位申请记录
export function delApplication(applicationId) {
  return request({
    url: '/internship/application/' + applicationId,
    method: 'delete'
  })
}
